package com.campus.app.mapper;

import com.campus.commons.entity.DeScore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 学部积分表 Mapper 接口
 * </p>
 *
 * @author Rin
 * @since 2021-02-01
 */
@Repository
public interface DeScoreMapper extends BaseMapper<DeScore> {
    List<DeScore> getDeStudents();

    DeScore getStudentByStudentId(Integer studentId);

    /**
     * 根据部门返回前几积分的学生
     * @param limit
     * @return
     */
    List<DeScore> getDeStudentInfoDesc(Integer limit);

    int updateDeStudent();
}
